﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WineDAL;

namespace WineBLL
{
    public class WineDetailsBLL
    {
        WineDetailsDAL dal = new WineDetailsDAL();
        /// <summary>
        /// 根据编号显示商品信息
        /// </summary>
        /// <param name="GID"></param>
        /// <returns></returns>
        public ArrayList Details_Show(int GID)
        {
           return dal.Details_Show(GID);
        }
        /// <summary>
        /// 根据商品编号显示商品评论
        /// </summary>
        /// <param name="GID"></param>
        /// <returns></returns>
        public ArrayList Comments_Show(int GID)
        {
            return dal.Comments_Show(GID);
        }
        /// <summary>
        /// 添加购物车
        /// </summary>
        /// <param name="shop"></param>
        /// <returns></returns>
        public int ShopAddDo(WineModel.Shop shop)
        {
            return dal.ShopAddDo(shop);
        }
    }
}
